package com.hotel.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hotel.mapper.RoleMapper;
import com.hotel.mapper.RoomTypeMapper;
import com.hotel.pojo.Role;
import com.hotel.pojo.RoomType;
import com.hotel.service.RoleService;
import com.hotel.service.RoomTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-06-25 20:15
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired(required = false)
    private RoleMapper roleMapper;

    @Override
    public List<Role> toListRole() {
        return roleMapper.toListRole();
    }
}
